<extend name="./public/operateMain.html" />
<block name="editArea">
<div class="panel panel-primary">
	<div class="panel-heading">
		<span class="glyphicon glyphicon-th-list">&nbsp;</span>
		<b>编辑客户</b>
		<a href="{:U('CustInfo/custInfo')}">
			<span class="glyphicon glyphicon-remove"
				style="float: right; color: white"></span>
		</a>
	</div>
	<form method="post" action="{:U('CustInfo/edit')}">
		<input type="hidden" name="id" value="{$Rs.id}">
		<table class="table table-condensed table-hover">
			<tr>
				<td>
					<label for='title_input' class='control-label x85'>公司名称:</label>
					<input type='text' id='title' name='title' required="required"
						size='20' value='{$Rs.title}'>
				</td>
				<td>
					<label for='dizhi_input' class='control-label x85'>公司地址:</label>
					<input type='text' id='dizhi' name='dizhi' size='20'
						required="required" value='{$Rs.dizhi}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='xingming_input' class='control-label x85'>联系人:</label>
					<input type='text' id='xingming' name='xingming' size='20'
						required="required" value='{$Rs.xingming}'>
				</td>
				<td>
					<label for='sex_input' class='control-label x85'>性别:</label>
					<select name="sex" data-toggle="selectpicker" data-rule="required">
						<if condition="$Rs['sex'] eq '男'">
						<option value="男" selected>男</option>
						<else />
						<option value="女" selected>女</option>
						</if>
						<option value="男">男</option>
						<option value="女">女</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					<label for='bumen_input' class='control-label x85'>部门职务:</label>
					<input type='text' id='bumen' name='bumen' size='20'
						required="required" value='{$Rs.bumen}'>
				</td>
				<td>
					<label for='phone_input' class='control-label x85'>手机号码:</label>
					<input type='text' id='phone' name='phone' size='20'
						value='{$Rs.phone}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='email_input' class='control-label x85'>EMAIL:</label>
					<input type='text' id='email' name='email' size='20'
						value='{$Rs.email}'>
				</td>
				<td>
					<label for='qq_input' class='control-label x85'>QQ:</label>
					<input type='text' id='qq' name='qq' size='20' value='{$Rs.qq}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='name_input' class='control-label x85'>爱好:</label>
					<input type='text' id='name' name='name' size='20'
						value='{$Rs.name}'>
				</td>
				<td>
					<label for='type_input' class='control-label x85'>客户来源:</label>
					<select name="type" data-toggle="selectpicker" class="show-tick">
						<option value="">请选择</option>
						<option value="百度推广">百度推广</option>
						<option value="电话营销" selected="">电话营销</option>
						<option value="主动联系">主动联系</option>
						<option value="客户介绍">客户介绍</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan=2>
					<label style="vertical-align: middle;" for='title_input'>客户描述:</label>
					<textarea
						style="display: inline-block; height: 100%; vertical-align: middle;"
						name='beizhu' cols='65' rows='5'>{$Rs.beizhu}</textarea>
				</td>
			</tr>
		</table>
		<div class="row">
			<button type="submit"
				class="col-md-1 col-md-offset-8 btn btn-sm btn-primary"
				data-icon="save">保存</button>
			<a href="{:U('CustInfo/custInfo')}" type="button"
				class="col-md-1 col-md-offset-1 btn btn-sm btn-default"
				data-icon="close">取消</a>
		</div>
	</form>
	<br />
</div>
</block>
